import request from '@/utils/request'

// 获取场站分页列表
export function getstationPageApi(params: any) {
  return request({
    url: '/ems/station/selectPage',
    method: 'get',
    params
  })
}
// 获取场站列表
export function getstationListApi(params: any) {
  return request({
    url: '/ems/station/list',
    method: 'get',
    params
  })
}
// 新增场站列表
export function addStationApi(data: any) {
  return request({
    url: '/ems/station/add',
    method: 'post',
    data
  })
}
// 更新场站列表
export function updateStationApi(data: any) {
  return request({
    url: '/ems/station/update',
    method: 'put',
    data
  })
}
// 删除场站列表
export function delStationApi(id: any) {
  return request({
    url: `/ems/station/del/${id}`,
    method: 'delete',
  })
}
